package io.github.talelin.latticy.controller.v1;


import io.github.talelin.core.annotation.GroupRequired;
import io.github.talelin.latticy.dto.pick.PickDown;
import io.github.talelin.latticy.service.PickingService;
import io.github.talelin.latticy.vo.CreatedVO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * 出库拣货前端控制器
 *
 * @author generator@wulongbo
 * @since 2022-08-17
 */
@RestController
@RequestMapping("/v1/picking")
public class PickingController {

    @Resource
    private PickingService pickingService;
    /**
     * 下架
     *
     * @return
     */
    @GroupRequired
    @PostMapping("/pickDown")
    public CreatedVO pickDown(@RequestBody @Validated PickDown pickDown) {
        pickingService.pickDown(pickDown);
        return new CreatedVO();
    }

}
